package pers.liyan.shi.springcloud.consumeruser;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 启用服务发现
 * 启用 FeignClient 注解, basePackages 指定要扫描的包
 *
 * @EnableDiscoveryClient 或者 @EnableEurekaClient 的作用是能够让注册中心发现该服务, 可省略
 * @author shily
 * @date 2019/4/21 0:38
 */

@EnableFeignClients(basePackages = {"pers.liyan.shi.springcloud.producerticketclient.client"})
@SpringBootApplication(scanBasePackages = {"pers.liyan.shi.springcloud.producerticketclient.client", "pers.liyan.shi.springcloud.consumeruser"})
public class ConsumerUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConsumerUserApplication.class, args);
    }

}
